package com.mezz.bones.framework.core.strategy.demo;

import com.mezz.bones.framework.core.strategy.StrategyContext;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: zhuang
 * @Date: 2024/8/20 17:36
 * @Description: TODO
 * @Version: 1.0
 **/

@Service
public class StrategyCustomer {

    @Resource
    private StrategyContext strategyContext;

    public void customerCall() {

        FileUploadStrategy tx = strategyContext.getStrategy(FileUploadStrategy.class, "tx");
        tx.upload();
    }
}
